// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import $ from 'jquery'
import Axios from 'axios'
import http from './api/http'
import store from './store'
import "../static/publice.css"
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Calendar from 'vue-mobile-calendar'

Vue.config.productionTip = false


Vue.prototype.$http = Axios;//将axios挂载到Vue实例中的$http上面,在项目中的任何位置通过this.$http使用
Vue.prototype.$ajax = http;//封装过的拦截器
Vue.use(ElementUI)
Vue.use(Calendar)
/* eslint-disable no-new */
const Bus = new Vue()
var app=new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>',
  data:{
    Bus
  }
})
/*Vue.prototype.isWeiXin=function () {
  let ua = window.navigator.userAgent.toLowerCase();
  if(ua.match(/MicroMessenger/i) == 'micromessenger' || ua.match(/_SQ_/i) == '_sq_'){
    return true;
  }else{
    return false;
  }
}*/
